home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / gfx / pbm / STIMP_noise.lha / STIMP_noise / Install < prev    next >
Text File  |  1999-01-05  |  6KB  |  245 lines

  1. ;
  2. ; Skript zur Installation von STIMP_noise 1.04
  3. ; inklusive Unterstuetzung fuer Ultraconv3/4
  4. ; Version 1.06, 05.01.99
  5. ; Version 1.05, 30.11.98
  6. ; Version 1.04, 18.04.98
  7. ; Version 1.03, 16.04.98
  8. ; Version 1.02, 24.02.98
  9. ; (c) 1998 Stefan Diener
  10. ;
  11.  
  12. (set @pretend 0)
  13. (set @user-level 2)
  14. (set @default-dest "")
  15.  
  16. (complete 0)
  17.  
  18. (if (= @language "deutsch")
  19.  (
  20.    ; deutsche Textausgaben
  21.    (set #yes "Ja")
  22.    (set #no "Nein")
  23.    (set #gruss "\n\n\n\nSTIMP_noise 1.04\n© 1997/99 by Stefan Diener\n\n\nWillkommen zur Installation von STIMP_noise 1.04 !\nDieses Skript wird STIMP_noise auf Ihrer Festplatte installieren.\n")
  24.    (set #destimsg "Wo wollen Sie STIMP_noise installieren ?\n(Ein Verzeichnis namens STIMP wird dort automatisch erzeugt.)")
  25.    (set #addlines "\nZwei Zeilen müssen zur Datei S:User-Startup hinzugefügt werden:\n")
  26.    (set #fertig "\nSTIMP_noise ist nun auf Ihrer Festplatte in folgendem\nVerzeichnis installiert:\n")
  27.    (set #whichcpu "Für welche CPU sollen optimierte Versionen\ninstalliert werden ?")
  28.    (set #reallyuconv "Möchten Sie die Programme auch von\nUltraconv3/4 aus benutzen ?")
  29.  )
  30.  (
  31.    ; english text output
  32.    (set #yes "Yes")
  33.    (set #no "No")
  34.    (set #gruss "\n\n\n\nSTIMP_noise 1.04\n© 1997/99 by Stefan Diener\n\n\nWelcome to the STIMP_noise 1.04 installation !\nThis script will install STIMP_noise on your harddisk.\n")
  35.    (set #destimsg "Where do you want to install STIMP_noise ?\n(A directory called STIMP will be automaticly created.)")
  36.    (set #addlines "\nTwo lines have to be added to your S:User-Startup:\n")
  37.    (set #fertig "\nSTIMP_noise is now installed on your harddisk at:\n")
  38.    (set #whichcpu "For which CPU shall I install an optimised version ?")
  39.    (set #reallyuconv "Do you want to use the programs\ntogether with Ultraconv3/4 too ?")
  40.  )
  41. )
  42.  
  43. ; kleine Begruessung
  44. (message #gruss
  45. )
  46.  
  47. ; Zielpfad ermitteln
  48. (set #destidir
  49.   (askdir
  50.     (prompt #destimsg)
  51.     (help @askdir-help)
  52.     (default "GFX:")
  53.   )
  54. )
  55.  
  56. (complete 5)
  57.  
  58. (set #dstdir
  59.   (tackon #destidir "STIMP")
  60. )
  61.  
  62. ; ggf. Verzeichnis fuer STIMP erst erzeugen
  63. (if (= (exists #dstdir) 0)
  64.  (makedir #dstdir)
  65. )
  66.  
  67. (complete 10)
  68.  
  69. ; alle Pfade definieren
  70. (set #binpath
  71.   (tackon #dstdir "bin")
  72. )
  73.  
  74. (set #docpath
  75.   (tackon #dstdir "doc")
  76. )
  77.  
  78. (set #helppath
  79.   (tackon #dstdir "help")
  80. )
  81.  
  82. ; automatische Auswahl der CPU
  83. (set #mycpu (database "cpu"))
  84. (if (= #mycpu 68000) (set #cpu 0))
  85. (if (= #mycpu 68010) (set #cpu 0))
  86. (if (= #mycpu 68020) (set #cpu 0))
  87. (if (= #mycpu 68030) (set #cpu 1))
  88. (if (= #mycpu 68040) (set #cpu 1))
  89. (if (= #mycpu 68060) (set #cpu 1))
  90.  
  91. (if (> (exists ("LIBS:ppc.library")) 0) (set #cpu 2))
  92.  
  93. ; Benutzer nach optimaler Programmvariante fragen
  94. (set #cpuver (askchoice (choices "68000" "68030+68882" "PowerPC")
  95.                (prompt #whichcpu)
  96.                (help   "The 68000 versions will work on all Amigas.\n"
  97.                        "If you have a MC68030 (or higher) with FPU,\nuse the 68030+68882 versions !\n"
  98.                        "If you are so lucky owning a PPC, select it !\n")
  99.                (default #cpu)
  100.              )
  101. )
  102.  
  103. (complete 20)
  104.  
  105. ; Dokumentation kopieren
  106. (copyfiles
  107.   (source "doc")
  108.   (dest #docpath)
  109.   (pattern "#?")
  110. )
  111.  
  112. (complete 30)
  113.  
  114. ; Help-Dateien kopieren
  115. (copyfiles
  116.   (source "help")
  117.   (dest #helppath)
  118.   (pattern "#?")
  119. )
  120.  
  121. (complete 40)
  122.  
  123. ; jeweilige Programmvariante kopieren
  124. (if (= #cpuver 0)
  125.   ; also nur 68000
  126.   (copyfiles
  127.     (source "bin")
  128.     (dest #binpath)
  129.     (pattern "#?")
  130.   )
  131. )
  132.  
  133. (if (= #cpuver 1)
  134.   ; doch schon 68030+68882
  135.   (copyfiles
  136.     (source "bin.030882")
  137.     (dest #binpath)
  138.     (pattern "#?")
  139.   )
  140. )
  141.  
  142. (if (= #cpuver 2)
  143.   ; wow, PowerPC
  144.   (copyfiles
  145.     (source "bin.ppc")
  146.     (dest #binpath)
  147.     (pattern "#?")
  148.   )
  149. )
  150.  
  151. (complete 65)
  152.  
  153. (set #linetoadd1
  154.   (cat "Assign STIMP: " #dstdir)
  155. )
  156.  
  157. (set #linetoadd2 "Assign C: STIMP:bin add")
  158.  
  159. ; Assign-Zeilen in S:User-Startup einfuegen
  160. (startup "STIMP"
  161.   (prompt #addlines
  162.           #linetoadd1 "\n"
  163.           #linetoadd2)
  164.   (help "These lines have to be added in order to make the STIMP programs run properly !")
  165.   (command #linetoadd1 "\n" #linetoadd2)
  166. )
  167.  
  168. ; auch jetzt schon Assign wirksam werden lassen
  169. (makeassign "STIMP" #dstdir)
  170.  
  171. ; Hier muesste stehen: "Assign C: STIMP:bin add".
  172. ; Stattdessen wird ein kleines Shell-Skript
  173. ; aufgerufen -> umstaendlich, aber noetig ...
  174. (execute "Assign.Skript")
  175.  
  176. (complete 70)
  177.  
  178.  
  179. ; Ultraconv-Unterstuetzung erwuenscht ?
  180. (set #uconv (askchoice (choices #yes #no)
  181.               (prompt #reallyuconv)
  182.               (help "If you are a user of Ultraconv 3 or 4, I suggest to select YES !")
  183.               (default 0)
  184.             )
  185. )
  186.  
  187. (complete 75)
  188.  
  189. (if (= #uconv 0)
  190.   (
  191.     ; Ultraconv-Unterstuetzung ist erwuenscht !
  192.  
  193.     ; copy ReqDesc files
  194.     (copyfiles
  195.       (source "Ultraconv/ReqDesc/")
  196.       (dest "UConv:ReqDesc/")
  197.       (pattern "#?")
  198.     )
  199.  
  200.     (complete 80)
  201.  
  202.     ; add the new filters
  203.     ; this is a little bit more complicated,
  204.     ; so I give it up to a shell script
  205.     (execute "Ultraconv/AddNewFilters.Skript")
  206.  
  207.     (complete 85)
  208.  
  209.     ; add PPC support
  210.     (if (= #cpuver 2)
  211.       ; wow, PowerPC
  212.       (execute "Ultraconv/AddPPCSupport.Skript")
  213.     )
  214.  
  215.     (complete 90)
  216.  
  217.     ; copy german catalog file
  218.     (if (= @language "deutsch")
  219.       (
  220.         (if (> (exists ("UConv:Catalogs/Deutsch/UConv.catalog")) 0)
  221.           (copyfiles
  222.             (source "Ultraconv/Catalogs/Deutsch/")
  223.             (dest "UConv:Catalogs/Deutsch/")
  224.             (pattern "#?")
  225.           )
  226.         )
  227.  
  228.         (complete 95)    
  229.  
  230.         (copyfiles
  231.           (source "Ultraconv/Catalogs/Deutsch/")
  232.           (dest "LOCALE:Catalogs/Deutsch/")
  233.           (pattern "#?")
  234.         )
  235.       )
  236.     )
  237.   )
  238. )
  239.  
  240. (complete 100)
  241.  
  242. ; das war es schon -> Verabschiedung
  243. (message #fertig #dstdir "\n\n\nHave fun !"
  244. )
  245.